<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<%
	String path = request.getContextPath();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改资源</title>
<script src="<%=path %>/js/formValidator-4.1.1.js" type="text/javascript" charset="UTF-8"></script>
<script src="<%=path %>/js/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
<script src="<%=path %>/js/DateTimeMask.js" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
	$(function(){
		$.formValidator.initConfig({theme:"126",submitOnce:true,formID:"rForm",
			onError:function(msg){alert(msg);},
			submitAfterAjaxPrompt : '有数据正在验证,请稍候...'
		});
		$("#resourceGroupName").formValidator({
			onShowFixText:"资源组名称可随便写,但要见名知意;长度至少为5",
			onFocus:"必须输入资源组名称",
			onCorrect:"资源组名称输入正确"
			}).inputValidator({
				min:5,onError:"资源组名称长度至少为5!"
				});

	});
</script>
</head>
<body>
	<form id="rForm" action="<%=path%>/resourceGroup/editResourceGroup.htm" method="post">
		<table border="1" style="width: 100%; border-collapse: collapse; border-color: #D4D4D4;" rules="rows">
			<tr>
			  <td width="20%">
			  	<input type="hidden" name="resourceGroup.RGId" value="${resourceGroup.RGId }"></input>
			  </td>
		      <td align="right"><font color="red">* </font>资源名称:</td>
		      <td><input type="text" id="resourceGroupName" name="resourceGroup.resourceGroupName" value="${resourceGroup.resourceGroupName }" style="width:350px" /></td>
		      <td><div id="resourceGroupNameTip" style="width:280px"></div></td>
		    </tr>
		    <tr>
		    	<td width="20%"></td>
		        <td align="right">&nbsp;</td>
		        <td colspan="2" valign="top"><div id="resourceGroupNameFixTip"></div></td>
		    </tr>
			<tr>
				<td colspan="2"></td>
				<td style="padding-left: 100px;"><input type="submit" value="提交"></input></td>
			</tr>
		</table>
	</form>
</body>
</html>